package com.zte.shopping.service;

import com.zte.shopping.entity.ProductType;
import com.zte.shopping.exception.ProductTypeExistException;
import com.zte.shopping.exception.RequestParameterException;

import javax.servlet.ServletOutputStream;
import java.util.List;

public interface ProductTypeService {

    List<ProductType> allProductTypeList( );

    List<ProductType> productTypeList( Integer pageIndex);
    int productTypeListCount();

    void modifyStatus(String id, String status);

    void modifyName(String id, String name) throws ProductTypeExistException;

    void addType(String name) throws ProductTypeExistException, RequestParameterException;


    List<ProductType> findEnableProductTypeList();
}
